﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Default : System.Web.UI.Page, IAccess
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // CurrentAccount.CheckSessionTimeOut(this);

        // ltlkeystatus.Text = "<h3 style='text-align:center;'>已成功加载</h3>";


        CurrentAccount.CheckSessionTimeOut(this);
        try
        {
            var ie = HZ.Security.EncryptFactory.Instance;
            var enc = ie.EncryptString("123", "111");
            var price = ie.DecryptString(enc, "111");
            if (price == "123")
            {
                imgstatus.ImageUrl = "~/lib/images/keystatus_green.gif";
            }
            else
            {
                imgstatus.ImageUrl = "~/lib/images/keystatus_red.gif";

            }
        }
        catch
        {

            imgstatus.ImageUrl = "~/lib/images/keystatus_red.gif";
        }
    }
    #region IAccess Members

    IList<EnumAccess> IAccess.AccessList
    {
        get
        {
            var list = new List<EnumAccess>();
            list.Add(EnumAccess.Manage);
            return list;
        }

    }

    #endregion
}
